package com.snowfield.lbcommon.velocity.haproxy;

/**
 * haproxy backend server对象
 */
public class BEServer {
    //服务器名称：srv{id}
    private String name;
    //服务器地址
    private String address;
    //服务端口
    private Integer servicePort;
    //检测端口
    private Integer checkPort;

    //在使用cookie方式保持会话时，要指定服务器的cookie属性值
    private String cookieValue;

    //health check
    private Boolean check = Boolean.TRUE;
    private Integer inter = 2000;
    private Integer rise = 2;
    private Integer fall = 5;


    //接受的最大连接数，当实际连接大于此值时，进入队列等待
    private Integer maxconn = 2000;
    //权重
    private Integer weight = 1;
    //签名证书地址
    private String crtPath;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public Integer getServicePort() {
        return servicePort;
    }

    public void setServicePort(Integer servicePort) {
        this.servicePort = servicePort;
    }

    public Integer getCheckPort() {
        return checkPort;
    }

    public void setCheckPort(Integer checkPort) {
        this.checkPort = checkPort;
    }

    public String getCookieValue() {
        return cookieValue;
    }

    public void setCookieValue(String cookieValue) {
        this.cookieValue = cookieValue;
    }

    public Boolean getCheck() {
        return check;
    }

    public void setCheck(Boolean check) {
        this.check = check;
    }

    public Integer getInter() {
        return inter;
    }

    public void setInter(Integer inter) {
        this.inter = inter;
    }

    public Integer getRise() {
        return rise;
    }

    public void setRise(Integer rise) {
        this.rise = rise;
    }

    public Integer getFall() {
        return fall;
    }

    public void setFall(Integer fall) {
        this.fall = fall;
    }

    public Integer getMaxconn() {
        return maxconn;
    }

    public void setMaxconn(Integer maxconn) {
        this.maxconn = maxconn;
    }

    public Integer getWeight() {
        return weight;
    }

    public void setWeight(Integer weight) {
        this.weight = weight;
    }

    public String getCrtPath() {
        return crtPath;
    }

    public void setCrtPath(String crtPath) {
        this.crtPath = crtPath;
    }
}
